.POSIX:
PREFIX=	/usr/local
MANDIR=	man

SRC=	main.c dc.c util.c
HDR=	dc.h util.h

dc_CFLAGS=	${CFLAGS} -I${PREFIX}/include
dc_LDFLAGS=	${LDFLAGS} -L${PREFIX}/lib

default: dc
all: default
dc: ${SRC} ${HDR} Makefile
	${CC} ${dc_CFLAGS} ${dc_LDFLAGS} -o $@ ${SRC} -lzahl
install: dc
	install -m 755 dc ${DESTDIR}${PREFIX}/bin/
install-local: dc
	install -m 755 dc ${HOME}/bin/
clean:
	rm -f dc
